public class arithmeticoperatordemo1 {
    public static void main(String[] args) {
        //+
        System.out.println(1+3);
        //-
        System.out.println(4-3);
        //*
        System.out.println(8*4);

        //如果在计算时有小数参与
        System.out.println(1.4+3.06);
        System.out.println(4.7-3.9);
        System.out.println(8.7*4.0);
        //结论:
        //在代码中,如果有小数参与计算,结果有可能不精确

        //  /
        System.out.println(5/2);
        //%
        System.out.println(5%2);
    }
}
